<template>
  <div class="box" v-transition :style="{height:height}">
    <Title :place="place" :icon="icon" @handleTitleClick="handleTitleClick" :title="title"></Title>
    <div class="userInfo">
      <div class="imgIconBox">
        <div class="imgIcon"  :style="{background:'url('+ imgurl   +') no-repeat ',backgroundSize:'contain'    }"  >
          <!-- 555 -->
        </div>
      </div>
      <div class="phoneName">{{account}}</div>
    </div>

    <div class="personalise">
      <div
        @click="detaiJunmp(item)"
        class="personaliseList"
        v-for="(item,index) in personaliseList"
        :key="index"
      >
        <div :style="{background:'url('+  item.img    +') no-repeat',backgroundSize:'contain'   }"></div>
        <div>{{item.name}}</div>
        <div>
          <div></div>
        </div>
      </div>
    </div>
    
  </div>
</template>
<script>
import Title from "../layout/Title";
export default {
  name: "PersonCenter",
  components: {
    Title
  },
  methods: {
    detaiJunmp(item) {
      this.$router.push({ path: item.path });
    },
    handleTitleClick(){
      this.$router.go(-1)
    }
    
  },
  mounted(){
    // //console.log(this.$store.state.userInfo)
  },
  data() {
    return {
      height:(document.documentElement.clientHeight || document.body.clientHeight) +"px",
      account:this.$store.state.userInfo.account,
      imgurl:this.$store.state.userInfo.fimageUrl,
      title:"ZegoPay",
      icon: "fanhui",
      place: "left",
      personaliseList: [
        {
          img: require("../assets/img/transaction.png"),
          name: this.Lang[this.$store.state.lang].bill_t1,
          path: "/moreBill"
        },
        {
          img: require("../assets/img/paymenPass.png"),
          name: this.Lang[this.$store.state.lang].personCenter_t1,
          path: "/changePassword"
        },
        {
          img: require("../assets/img/language.png"),
          name: this.Lang[this.$store.state.lang].personCenter_t2,
          path: "/selectLang"
        },
       
      ],
      showKB: false
    };
  }
};
</script>
<style  scoped>
.box {
  width: 100%;
  /* height: 100%; */
}
.userInfo {
  /* padding-top: px; */
  width: 100%;
  height: 100px;
  background-color: #1E79BF;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  padding-left: 20px;
}
.imgIcon {
  width: 60px;
  height: 60px;
  /* background: url("http://devtest.zegopay.com:18081/upload/image/3e/26/3e268ed5c721081ea48b17c3cf93dbf7.jpeg")
    no-repeat;
  background-size: contain; */
  border-radius: 80px;
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
.phoneName {
  padding-left: 20px;
  color: #ffffff;
  font-size: 14px;
}
.imgIconBox {
  width: 66px;
  height: 66px;
  background-color: #ffffff;
  border-radius: 70px;
  background: url("../assets/img/init.png") no-repeat;
  background-size: contain;
}
.personalise {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0px 8px 10px #e6e3e6;
  -webkit-box-shadow: 0px 8px 10px #e6e3e6;
}
.personaliseList {
  display: flex;
  height: 49px;
  align-items: center;
  border-bottom: 1.5px solid #f2f2f2;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
  /* justify-content: space-between; */
}
.personaliseList:last-child {
  border-bottom: none;
}
.personaliseList div:nth-child(1) {
  width: 22px;
  height: 22px;
  /* background:url("http://devtest.zegopay.com:18081/upload/image/3e/26/3e268ed5c721081ea48b17c3cf93dbf7.jpeg")
    no-repeat; */
  /* background-size: contain; */
}
.personaliseList div:nth-child(2) {
  margin-left: 10px;
  flex-grow: 1;
}
.personaliseList div:nth-child(3) {
  width: 20px;
  height: 20px;
}

.personaliseList div:nth-child(3) div {
  width: 7px;
  height: 7px;
  border-top: 2px solid #999999;
  border-right: 2px solid #999999;
  transform: rotate(45deg);
  margin-right: -50px;
  margin-top: 6px;
}
</style>